package org.example.DesignPatterns.Decorator.d1;

/**
 * @description:
 * @author: farprt
 * @create: 2022-03-10 09:49
 **/
public class Client {
    public static void main(String[] args) {
        Person person=new Person("farprt");
        Trouser tr=new Trouser();
        TShirts ts=new TShirts();

        tr.Decorate(person);
        ts.Decorate(tr);
        ts.Show();

        ts.Decorate(person);
        tr.Decorate(ts);
        tr.Show();
    }
}